package com.shop.shop.mapper;

import com.shop.shop.entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 地址表 Mapper 接口
 * </p>
 *
 * @author 小🌤
 * @since 2021-04-22
 */
public interface AddressMapper extends BaseMapper<Address> {

    @Update("update address set  as_default=0 where ur_id=#{urId}")
    void updateDefalutAddress(Address address1);
}
